export function findBySettingInfo() {
	/* uni.$u.http.get(
	    "cdn/sys/settings/myInfo"); */
	let key = "settingsKey"

	return new Promise((resolve, reject) => {
		let settingsKey = uni.getStorageSync(key)
		if (settingsKey) {
			resolve(settingsKey)
		} else {
			uni.$u.http.get(
				"cdn/sys/settings/myInfo").then(res => {
				if (res) {
					uni.setStorageSync(key, res)
				}
				resolve(res)
			}).catch((e) => {
				reject(e)
			});

		}

	}).catch((e) => {
		reject(e)
	});


}
//about
export function findByAboutInfo() {
	/* uni.$u.http.get(
	    "cdn/sys/settings/myInfo"); */

	return uni.$u.http.get("about/info")



}

//Live
export function findByLiveList() {
	/* uni.$u.http.get(
	    "cdn/sys/settings/myInfo"); */

	return uni.$u.http.get("live/list")



}
export function fileUpload(file = "",type=0) {



	//console.log(param, accountInfo, appBaseInfo,accountInfo)
	var url = 'upload/image';

	return uni.$u.http.upload(url, {
		name: "file",
		filePath: file,
		fileType: "image"
	});


}